package com.example.commonlib.commonutil;

import android.text.TextUtils;
import android.widget.TextView;

/**
 * Created by guitiancheng on 2018/6/4.
 * Introduction:
 */
public class TextViewUtil {

    public static boolean isEmpty(TextView view){
        return TextUtils.isEmpty(getText(view));
    }

    public static String getText(TextView view){
        return view.getText().toString().trim();
    }
}
